package org.liurq.spinrgcloud.controller;

import org.liurq.spinrgcloud.service.MessageProvider;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class SendMessageController {
    @Resource
    private MessageProvider messageProvider;

    @RequestMapping("/sendMessage")
    public String sendMessage(){
        return messageProvider.send();
    }

}
